package com.sdwl.brcl.validation.validation;

/**
 * @author xied
 * @date 2021年06月11日 14:09
 */
public class NotNullValidator implements Validator {
    public NotNullValidator() {
    }

    @Override
    public boolean validate(Object obj) {
        return obj != null;
    }

    @Override
    public String validateCode() {
        return "not.null";
    }

    @Override
    public String validateMsg(Object value, String validateName) {
        return validateName + "不能为空";
    }
}
